/* 页面基础样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* 头部标题 */
h2 {
    margin: 20px 0;
    color: #333;
}

/* 表单样式 */
form {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

form input[type="text"] {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 200px;
}

form input[type="submit"] {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* 链接按钮样式 */
a {
    text-decoration: none;
    color: #333;
    margin: 10px;
}

a:hover {
    text-decoration: underline;
}

a.add-button {
    background-color: #007BFF;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
}

a.add-button:hover {
    background-color: #0056b3;
}

/* 表格样式 */
table {
    width: 80%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

/* 表格中的按钮样式 */
td button {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    margin: 2px;
}

td button:hover {
    background-color: #0056b3;
}

/* 修改和详情按钮 */
td button.edit, td button.details {
    background-color: #28a745;
}

td button.edit:hover, td button.details:hover {
    background-color: #218838;
}

/* 删除按钮 */
td button.delete {
    background-color: #dc3545;
}

td button.delete:hover {
    background-color: #c82333;
}
